/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package ee.ioc.phon.ohos.speechutils.utils;

/**
 * 静态常量
 *
 * @since 2021-03-20
 */
public class Define {
    /**
     * 麦克风权限
     */
    public static final String MICROPHONE = "ohos.permission.MICROPHONE";
    /**
     * 录音
     */
    public static final String SHORTCUTS = "ohos.permission.MANAGE_SHORTCUTS";
    /**
     * 1000
     */
    public static final int YIQIAN = 1000;
    /**
     * 2000
     */
    public static final int ERQIAN = 2000;
    /**
     * -1
     */
    public static final int FUYI = -1;
    /**
     * 10000000
     */
    public static final int ENERGYYIQN = 10000000;
    /**
     * 4000000
     */
    public static final int ENERGSIQIAN = 4000000;
    /**
     * 300000
     */
    public static final int ENERGSANSHI = 300000;
    /**
     * 比特率
     */
    public static final int SAMPLE_RATE = 16000;
    /**
     * 1280
     */
    public static final int BYTE_BUFFER = 1280;
    /**
     * 50
     */
    public static final int SLEEP_INTERVAL = 50;

    /**
     * 构造函数
     */
    private Define() {
    }
}
